import { ref } from 'vue'

export default () => {
  const subpackages = ref<KeyPersonModel[]>([])

  // 获取所有的关键人员信息
  const all = async () => {
    subpackages.value = await window.api.sql(
      `select * from keypersons order by compId desc`,
      'findAll'
    )
  }

  return { all, subpackages }
}
